package com.tx.java.chapter3;

public class FinalizeClass {
    @Override
    protected void finalize() throws Throwable {
//        super.finalize();
        System.out.println("wow！ clean garbage！");
    }

    public static void main(String[] args) {
        FinalizeClass f = new FinalizeClass();
        f = null;
        System.gc();
    }
}
